/*
 */
package gclib;

import gclib.Abilities.TYPE;

/**Ability.java
 * After further finding of better ways to handle toon abilities, this class
 * has been deprecated.
 * Created Jul 22, 2009 10:38:24 PM
 * @author Jason
 */
@Deprecated
public class Ability {

    /** This is the magic number for this ability. */
    protected int score = 1;
    private TYPE type;

    /** Default constructor. */
    public Ability(TYPE type) {
        this.type = type;
    }

    public TYPE getType(){
        return type;
    }

    /**Simple getter.
     * @return the ability score.
     */
    public int getScore() {
        return score;
    }

    /**A calculated adjustment of the ability, used throughout the game.
     * @return the modified score.
     */
    public int getModifier() {
        return score / 2 - 5;
    }

    @Override
    public String toString() {
        java.lang.reflect.Field[] fields = this.getClass().getDeclaredFields();
        return this.getClass().getSimpleName() + "[]";
    }
}
